// 去掉首部的0
let a = "000123";
let b = a.replace(/\b(0+)/gi,"")
console.log(b);